package com.dgut.exp02.czqqq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.env.Environment;

public class CommandLineRunnerImpl implements CommandLineRunner {

    private Environment environment;

    /**
     * 日志变量log
     */
    private static final Logger log = LoggerFactory.getLogger(CommandLineRunnerImpl.class);

    public CommandLineRunnerImpl(Environment environment) {
        this.environment = environment;
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("利用springboot自动装配的CommandLineRunner");
    }
}
